<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                template="/WEB-INF/template/crud/crud.xhtml">

    <ui:define name="conteudo">
        <h:panelGroup>
                <h:form>
                    <ui:include src="/WEB-INF/template/crud/headercrud.xhtml"/>
                    <ui:include src="/WEB-INF/template/crud/pagination.xhtml"/>
                    <h:dataTable rendered="#{MB.itens.rowCount > 0}"
                        value="#{MB.itens}"
                        var="item"
                        styleClass="table table-striped table-condensed table-hover footable">
                        <ui:insert name="list"></ui:insert>
                        <ui:include src="/WEB-INF/template/crud/btnlist.xhtml"/>
                    </h:dataTable>
                </h:form>
        </h:panelGroup>
    </ui:define>
</ui:composition>